package com.xk.springboot.controller;


import com.xk.springboot.dto.ResponseData;
import com.xk.springboot.dto.ResultData;
import com.xk.springboot.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Timestamp;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/08
 */
@RestController
@RequestMapping("/json")
public class JsonController {



    @GetMapping("/ignore")
    public ResultData testIgnore(){
        User user = new User();
        user.setUserName("Lucy");
        user.setUserPwd("1231231");
        user.setBirthday(new Timestamp(System.currentTimeMillis()));
        return ResponseData.success(user);
    }

}
